<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
      <input type="text" v-model="inputTxt">
      {{ inputTxt }}
      <input type="checkbox" v-model="isChecked">
      {{ isChecked }}

      <hr/>
      <input type="checkbox" value="篮球" v-model="arr">
      <input type="checkbox" value="足球" v-model="arr">
      <input type="checkbox" value="排球" v-model="arr">
      {{ arr }}
      <hr/>
     
  </div>
  
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      data: {
        inputTxt:'初始值',
        isChecked: false,
        arr:[]
      }
    })
    // 外部挂载
    vm.$mount(document.querySelector("#app"))
  </script>
</body>
</html>
